package spring.framework.study.dao;

import java.util.List;

import org.springframework.stereotype.Repository;

import spring.framework.study.entity.Order;

@Repository
public interface OrderDao {

	void insertOrder(Order order);

//	@Select("select order_id as orderId,order_name as orderName" +
//			"		from t_order " + 
//			"		where order_id = #{orderId,jdbcType=VARCHAR}")
//	@Select(value = { "select order_id as orderId,order_name as orderName" +
//			"		from t_order " + 
//			"		where order_id = #{orderId,jdbcType=VARCHAR}" })
	Order getOrder(String orderId);

	int updateOrder(Order order);

	List<Order> getAll();
}
